home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmArray
- BorderStyle = 1 'Fixed Single
- Caption = "VBMax Electronic Message Demo - Arrays"
- ClientHeight = 2310
- ClientLeft = 1110
- ClientTop = 2925
- ClientWidth = 6315
- ControlBox = 0 'False
- Height = 2715
- Icon = "Array.frx":0000
- Left = 1050
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 154
- ScaleMode = 3 'Pixel
- ScaleWidth = 421
- Top = 2580
- Width = 6435
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 1
- Left = 2580
- Top = 540
- End
- Begin VB.PictureBox picDisplay
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 420
- Index = 3
- Left = 225
- ScaleHeight = 420
- ScaleWidth = 5805
- TabIndex = 3
- Top = 1650
- Width = 5805
- End
- Begin VB.PictureBox picDisplay
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 420
- Index = 2
- Left = 225
- ScaleHeight = 420
- ScaleWidth = 5805
- TabIndex = 2
- Top = 1245
- Width = 5805
- End
- Begin VB.PictureBox picDisplay
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 420
- Index = 1
- Left = 225
- ScaleHeight = 420
- ScaleWidth = 5805
- TabIndex = 1
- Top = 840
- Width = 5805
- End
- Begin VB.PictureBox picDisplay
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 420
- Index = 0
- Left = 225
- ScaleHeight = 420
- ScaleWidth = 5805
- TabIndex = 0
- Top = 150
- Width = 5805
- End
- Begin VB.Shape Shape2
- BackColor = &H80000010&
- BackStyle = 1 'Opaque
- BorderStyle = 0 'Transparent
- Height = 1245
- Left = 315
- Top = 930
- Width = 5805
- End
- Begin VB.Shape Shape1
- BackColor = &H80000010&
- BackStyle = 1 'Opaque
- BorderStyle = 0 'Transparent
- Height = 420
- Left = 315
- Top = 240
- Width = 5805
- End
- Attribute VB_Name = "frmArray"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim moEDisp(3) As New CElectronicDisplay
- Private Sub Form_Load()
- Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
- With moEDisp(0)
- .BackColor = &H400080
- .ForeColor = vbYellow
- .Effect = gnEFFECT_STATIC
- Set .Container = picDisplay(0)
- End With
- With moEDisp(1)
- .ShowGrid = False
- .BackColor = vbBlack
- .ForeColor = vbRed
- .Effect = gnEFFECT_SLIDE_FROM_LEFT
- .NotifyWhenFinished = True
- Set .Container = picDisplay(1)
- .Caption = "Registration is only"
- End With
- With moEDisp(2)
- .ShowGrid = False
- .BackColor = vbBlack
- .ForeColor = vbWhite
- .Effect = gnEFFECT_SLIDE_FROM_RIGHT
- Set .Container = picDisplay(2)
- .Caption = "$10.00 and you get"
- End With
- With moEDisp(3)
- .ShowGrid = False
- .BackColor = vbBlack
- .ForeColor = vbBlue
- .Effect = gnEFFECT_SLIDE_FROM_LEFT
- Set .Container = picDisplay(3)
- .Caption = "the source code too!"
- End With
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Dim i As Integer
- For i = 0 To 3
- moEDisp(i).Shutdown
- Set moEDisp(i) = Nothing
- Next i
- Set frmArray = Nothing
- End Sub
- Public Sub VBMaxElectronicDisplay_Finished(roEDisp As CElectronicDisplay)
- Select Case True
-
- Case roEDisp Is moEDisp(1)
- With moEDisp(0)
- .Effect = gnEFFECT_SCROLL
- .ScrollAmount = gnENTIRE_CHARACTER
- .Interval = 125
- .NotifyWhenFinished = True
- .Caption = "VBMax programming widgets are made " & _
- "from fresh, 100% pure VB code and " & _
- "contain no third-party additives. " & _
- " Bye, bye! "
- End With
- Case roEDisp Is moEDisp(0)
- Timer1.Enabled = True
-
- End Select
- End Sub
- Private Sub Timer1_Timer()
- Timer1.Enabled = False
- Unload Me
- End Sub
-